package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@TableName("spu_attr_value")
@Accessors(chain = true)
@ApiModel("商品属性值关联信息")
public class SpuAttrValue {
    /**
     * 商品属性值关联信息id
     */
    @TableId(value = "spu_attr_value_id",type = IdType.AUTO)
    @ApiModelProperty(value = "商品属性值关联信息id")
    private Integer spuAttrValueId;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private int spuId;
    /**
     * 规格属性id
     */
    @ApiModelProperty(value = "规格属性id")
    private int attrId;
    /**
     * 规格属性名称
     */
    @ApiModelProperty(value = "规格属性名称")
    private String attrName;
    /**
     * 规格属性值id
     */
    @ApiModelProperty(value = "规格属性值id")
    private int attrValueId;
    /**
     * 规格属性值名称
     */
    @ApiModelProperty(value = "规格属性值名称")
    private String attrValueName;
    /**
     * 规格属性描述
     */
    @ApiModelProperty(value = "规格属性描述")
    private String attrDesc;
}
